<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>万信管理后台</title>
    <%@ include file="/commons/meta.jsp"%>
    <link href="${ctx}/resources/admin/css/base.css" rel="stylesheet">
     <link type="text/css" href="${ctx}/resources/artDialog/skins/black.css" rel="stylesheet" />
</head>
<body>
<div id="loading" class="loading" >加载中…</div>
<div id="shade-div" class="shade-div hide"></div>
<%@ include file="/jsps/admin/inc/header.jsp"%>
<%@ include file="/jsps/admin/inc/menu.jsp"%>
<div id="main">
    <div id="content">
    <div class="hd">
        <span>终端管理</span>
         <button class="btn blue-btn fr" id="addDX">添 加</button>
    </div>
    <div class="tab-box">
        <ul>
            <li><a href="${ctx}/terminalparam/terminalparam1!list.xhtml">终端类型设置</a></li>
            <li  class="cur"><a href="${ctx}/terminalparam/terminalparam!list.xhtml">终端设置</a></li>
        </ul>

    </div>
    <table class="table-list">
        <tr>
            <th>终端类型</th>
            <th>网元编号</th>
            <th>网元名称</th>
            <th>参数ID</th>
            <th>参数值</th>
            <th>更新时间</th>
            <th>操作</th>
        </tr>
     
       <s:iterator value="pager.result" status="i" var="ss">
        <tr>
            <td>
            <s:if test="terminaltype==1">接入模块</s:if>
            <s:elseif test="terminaltype==2">核心模块</s:elseif>
            <s:elseif test="terminaltype==3">接入管理模块</s:elseif>
            </td>
            <td>${netid}</td>
             <td>${netName}</td>
            <td>${paramid}</td>
            <td>${paramvalue}</td>
            <td>${updateTime}</td>
            
            <td>
           <!--  <a href="javascript:;">启动监控</a> &nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:;" >停止监控</a>--> 
            <a href="javascript:qy(<s:property value="id" />,<s:property value="tenable" />);"  id="ss<s:property value="id" />" class="disable"><s:if test="tenable==0">已启动监控</s:if><s:elseif test="tenable==1">已停止监控</s:elseif></a>
            <a href="javascript:;" class="editDX"  title="${id}">修改</a> &nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:;" class="del"  title="${id}">删除</a> 
             </td>
        </tr>
      </s:iterator>
      
        
    </table>
    <s:if test="pager.totalCount > 0">
			<jsp:include page="/jsps/admin/inc/pager.jsp">
				<jsp:param name="pageUrl" value="${ctx}/terminalparam/terminalparam1!list.xhtml" />
			</jsp:include>
		</s:if>
		<s:else>
			<div class="pages" align="center">没有找到任何记录!</div>
  </s:else>


</div>
</div>
<%@ include file="/jsps/admin/inc/footer.jsp"%>

<!--添加警告级别-->
<div class="popbox w500" id="saveDX" >
    <div class="popbox-hd">
        <h2>添加终端对象设置</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <input id="UPid"  type="hidden"/>
    <div class="popbox-bd">
        <p><label>终端类型：</label>
         <select id="terminaltype">
         <option value="1">接入模块</option>
         <option value="2">核心模块</option>
         <option value="3">接入管理模块</option>
          </select>
        </p>
        <p><label>网元名称：</label>
         <select id="netid">
        <s:iterator value="terminalList" status="i" var="ss">
        <option value="${netid}_${name}">${name}</option>
        </s:iterator>
        </select>
        </p>
         <p><label>参数类型：</label>
         <select id="terminalparamTypeId">
        <s:iterator value="terminalparamTypeList" status="i" var="ss">
        <option value="${id}_${paramname}">${paramname}</option>
        </s:iterator>
        </select>
        </p>
        <p><label>参数ID：</label><input type="text" class="itext"  id="paramid"></p>
        <p><label>参数值：</label><input type="text" class="itext"  id="paramvalue"></p>
        <p><label>参数描述：</label><input type="text" class="itext"  id="description"></p>
    </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn" id="btnSvae3">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>

<!--警告级别修改-->
<div class="popbox w500" id="editDX" >
    <div class="popbox-hd">
        <h2>监控对象设置修改</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
         <input type="hidden"   id="sld"/>
    </div>
    <div class="popbox-bd">
      <p><label>终端类型：</label>
         <select id="UPterminaltype">
         <option value="1">接入模块</option>
         <option value="2">核心模块</option>
         <option value="3">接入管理模块</option>
          </select>
        </p>
        <p><label>网元名称：</label>
         <select id="UPnetid">
        <s:iterator value="terminalList" status="i" var="ss">
        <option value="${netid}_${name}">${name}</option>
        </s:iterator>
        </select>
        </p>
         <p><label>参数类型：</label>
         <select id="UPterminalparamTypeId">
        <s:iterator value="terminalparamTypeList" status="i" var="ss">
        <option value="${id}_${paramname}">${paramname}</option>
        </s:iterator>
        </select>
        </p>
        <p><label>参数ID：</label><input type="text" class="itext"  id="UPparamid"></p>
        <p><label>参数值：</label><input type="text" class="itext"  id="UPparamvalue"></p>
         </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn"  id="btnUpdate3">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>

<!--警告框-->
<div class="popbox w300" id="warning" >
    <div class="popbox-hd">
        <h2>警告</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
        <p class="center"></p>
         <input type="hidden"  id="deId"/>
    </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn" id="btnDelete3">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>

<div class="popbox w300" id="warning3" >
    <div class="popbox-hd">
        <h2>警告</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
        <p class="center"></p>
    </div>
    <div class="popbox-ft">
        <a href="javascript:qyok();" class="btn blue-btn"  id="btnqy">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>

<script src="${ctx}/resources/admin/js/lib/jquery-1.8.0.min.js"></script>
<script src="${ctx}/resources/admin/js/common.js"></script>
<script src="${ctx}/resources/admin/js/lib/jquery-ui.js"></script>
<script src="${ctx}/resources/admin/js/terminalparam/terminalparam.js"></script>
<script type="text/javascript" src="${ctx}/resources/artDialog/jquery.artDialog.js?skin=blue"></script>
<script type="text/javascript">
$(function(){
	common.menuClicked('P34', 'C35');
});
</script>
</body>
</html>